import { NgModule } from '@angular/core'
import { SharedModule } from '@shared'
import { DepositRoutingModule } from './deposit-routing.module'
import { DepositListComponent } from './list/list.component'
import { DepositService } from './deposit.service'
import { DepositDetailComponent } from './detail/detail.component'
import { DepositDetailTabBizComponent } from './detail/tab-biz/tab-biz.component'
import { DepositDetailTabLogsComponent } from './detail/tab-logs/tab-logs.component'
import { DepositCollectionComponent } from './new/collection.component'
import { DepositReturnComponent } from './new/return.component'
import { DepositNewSystemComponent } from './new/pages/system.component'
import { DepositDataService } from './deposit-data.service'
import { DepositReturnFormComponent } from './new/pages/return-form.component'
import { DepositCollectionFormComponent } from './new/pages/collection-form.component'

const COMPONENTS = []
const COMPONENTS_NOROUNT = [
  DepositListComponent,
  DepositDetailComponent,
  DepositDetailTabBizComponent,
  DepositDetailTabLogsComponent,
  DepositCollectionComponent,
  DepositReturnComponent,
  DepositNewSystemComponent,
  DepositCollectionFormComponent,
  DepositReturnFormComponent,
]

@NgModule({
  imports: [SharedModule, DepositRoutingModule],
  declarations: [...COMPONENTS, ...COMPONENTS_NOROUNT],
  entryComponents: COMPONENTS_NOROUNT,
  providers: [DepositService, DepositDataService],
})
export class DepositModule {}
